const acc = document.getElementsByClassName("accordion-controller");
for (let i = 0; i < acc.length; i++) {
    acc[i].addEventListener("click", function() {
				console.log('点击了隐藏按钮');
        this.classList.toggle("accordion-active");
        var panel = this.nextElementSibling;
				console.log('即将被隐藏的节点：', panel);
        if (panel.style.maxHeight) {
            panel.style.maxHeight = null;
						console.log('已设置html节点的高度为null');
        } else {
            panel.style.maxHeight = panel.scrollHeight + "px";
						console.log('已设置html节点的高度:', panel.style.maxHeight);
        } 
				
  });
}
